﻿<%@ Page Title="Registro de Nómina" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmNominaNuevo.aspx.cs" Inherits="UI.Secretaria.frmNominaNuevo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<%@ OutputCache Location="None" VaryByParam="None" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<%@ Register namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style5
        {
            width: 15px;
        }
       
        .style9
        {
        }
        .style11
        {
            width: 79px;
            text-align: center;
        }
        .style13
        {
        }
        .style14
        {
            width: 56px;
        }
        .style17
        {
            width: 226px;
        }
        
        
 

        
        
    </style>

       
        
        
        
      

        
        




</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <style type="text/css">
 
#BackGround
{
    
position: fixed;
top:0px;
bottom:0px;
left:0px;
right:0px;
overflow:hidden;
padding:0;
margin:0px;
background-color:#F0F0F0;
filter:alpha(opacity=80);
opacity:0.8;
z-index:100000;

    
}

#Progress
{
    position: fixed;
    top: 40%;
    left: 20%;
    height: 20%;
    width: 20%;
    z-index: 100001;
    background-color: #FFFFFF;
    border: 1px solid Gray;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../Imagenes/Gif/cargando.gif');
            bottom: 258px;
        }
     .style18
     {
         height: 21px;
     }
     .style21
     {
         height: 21px;
         width: 180px;
     }
     .style22
     {
         width: 180px;
     }
     .style23
     {
         height: 21px;
         width: 99px;
     }
     .style24
     {
         text-align: left;
         color: #FF0000;
     }
     .style25
     {
         height: 21px;
         width: 81px;
     }
     .style26
     {         margin-left: 40px;
     }
     .style27
     {
         text-align: left;
         color: #000000;
     }
 </style>


<table style="width: 879px">
<tr>
<td>&nbsp;</td>
<td style="text-align: right">

                
                &nbsp;</td>ss
</tr>

</table>

<br />
    <asp:UpdatePanel ID="panel1" runat="server">

  
<ContentTemplate>



<table class="style1" style="width: 96%">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style6" colspan="6">
                &nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style13" colspan="5">
                GENERACIÓN DE NÓMINAS -- PERIODO&nbsp;&nbsp;<asp:Label ID="lblSemestre" runat="server" 
                    style="font-family: Arial; font-size: large"></asp:Label>
            </td>
            <td style="text-align: right">
                <asp:ImageButton ID="ImageButton1" runat="server" Height="40px" 
                    ImageUrl="~/Imagenes/Botones/regresar.png" onclick="ImageButton1_Click" 
                    Width="40px" />
                &nbsp;<asp:ImageButton ID="btnAgregar" runat="server" Height="40px" 
                    ImageUrl="~/Imagenes/Botones/Agregar.jpg" onclick="btnAgregar_Click" 
                    Width="40px" />
                &nbsp;<asp:ImageButton ID="btnProcesar" runat="server" Height="40px" 
                    ImageUrl="~/Imagenes/Botones/Procesar.png" onclick="btnProcesar_Click" 
                    ToolTip="Procesar Nómina" Width="40px" />
                &nbsp;<asp:ImageButton ID="btnCancelar" runat="server" 
                    ImageUrl="~/Imagenes/Botones/Cancelar.png" OnClick="btnEliminar_Click" />
            </td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style13">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style17">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style13">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style9">
                Especialidad</td>
            <td class="style17">
                <asp:DropDownList ID="ddlEspecialidad" runat="server" AutoPostBack="True" 
                    Width="268px">
                </asp:DropDownList>
            </td>
            <td class="style11">
                Ciclo</td>
            <td>
                <asp:DropDownList ID="ddlCiclo" runat="server" Width="49px">
                </asp:DropDownList>
                &nbsp;&nbsp;
                <asp:Button ID="btnBuscar2" runat="server" Height="34px" 
                    onclick="btnBuscar2_Click" Text="Buscar" Width="89px" />
            </td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style13">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style9" colspan="3">
                <asp:Label ID="lblMensajePrincipal" runat="server" style="color: #CC0000"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td class="style13">
                &nbsp;</td>
            <td class="style14">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style17">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width: 696px">
    <tr>
    <td align="center">

    


    
        <asp:GridView ID="grvAlumno" runat="server" AutoGenerateColumns="False" 
            Width="883px" Caption="Nomina de Alumnos" 
            onrowdatabound="grvAlumno_RowDataBound" 
            
            
            
            
            DataKeyNames="Semestre,COD_ESPEC,COD_ALUMNO,Condicion_Alumno,Descripcion_Estado,Edad,Nombres,SEXO" 
            onrowcreated="grvAlumno_RowCreated">
            <Columns>




                


                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkActivo" runat="server" />
                    </ItemTemplate>
                    <HeaderTemplate>
                        <asp:CheckBox ID="chkActivo2" runat="server" />
                    </HeaderTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="COD_ALUMNO" HeaderText="Código" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="nombres" HeaderText="Nombres" >
                   <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                   <asp:BoundField DataField="Condicion_Alumno" HeaderText="IdEstado" Visible=false />
                <asp:BoundField DataField="Descripcion_Estado" HeaderText="Estado" 
                    Visible="False" >
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="edad" HeaderText="Edad" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:DropDownList ID="ddlEstadoAlumno" runat="server" Width="240px" 
                       >
                            <asp:ListItem Value="1">Regular</asp:ListItem>
                            <asp:ListItem Value="2">Reincorporado</asp:ListItem>
                            <asp:ListItem Value="3">Reingresante</asp:ListItem>
                            <asp:ListItem Value="4">Licencia</asp:ListItem>
                            <asp:ListItem Value="5">Ampliación de Licencia</asp:ListItem>
                            <asp:ListItem Value="6">Retiro Administrativo (voluntario)</asp:ListItem>
                            <asp:ListItem Value="7">Retiro Administrativo (No matriculado)</asp:ListItem>
                            <asp:ListItem Value="8">Retiro Académico (Deficiencia Acad.)</asp:ListItem>
                            <asp:ListItem Value="9">Retiro Académico (Límite de Inasistencias)</asp:ListItem>
                            <asp:ListItem Value="10">Reingreso / Licencia</asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="Id_Estado_Condicion" HeaderText="idEstado" 
                    Visible="False" />
                <asp:TemplateField HeaderText="R.D">
                    <ItemTemplate>
                        <asp:TextBox ID="txtRD" runat="server"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:BoundField DataField="SEXO" HeaderText="SEXO" 
                    Visible="True" />
                <asp:BoundField DataField="PAGO_MATRICULA" HeaderText="PAGO MATRICULA" />
                <asp:CommandField ShowSelectButton="True" SelectText="VER PAGO" />
            </Columns>
        </asp:GridView>

            </asp>



    

    </td>
    </tr>
    </table>
</ContentTemplate>

</asp:UpdatePanel>

    <br />






    <br />
    <asp:Panel ID="Panel2" runat="server"  Width="681px" 
        style="text-align: center">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table class="BTabla">
            <tr>
                <td class="filaTabla" colspan="5">
                    Búsqueda de Alumnos</td>
                <td class="filaTabla">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                </td>
                <td class="style23">
                </td>
                <td class="style21">
                </td>
                <td class="style18">
                </td>
                <td class="style18">
                </td>
                <td class="style18">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style26">
                    &nbsp;</td>
                <td class="style27">
                    Codigo/Nombre</td>
                <td class="style22">
                    <asp:TextBox ID="txtCodigo" runat="server" Width="155px"></asp:TextBox>
                </td>
                <td style="text-align: left">
                    <asp:Button ID="btnBuscarModal" runat="server" Height="35px" Text="Buscar" 
                        Width="90px" onclick="btnBuscarModal_Click" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style26">
                    &nbsp;</td>
                <td class="style24" colspan="3">
                    <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style26" colspan="6">
                    <asp:GridView ID="grvAgregaAlumnos" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" 
                        onselectedindexchanged="grvAgregaAlumnos_SelectedIndexChanged" 
                        Width="622px" onpageindexchanging="grvAgregaAlumnos_PageIndexChanging">
                        <Columns>
                            <asp:CommandField SelectText="Agregar" ShowSelectButton="True" />
                            <asp:BoundField DataField="COD_ALUMNO" HeaderText="Código">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="nombres" HeaderText="Nombres">
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CICLO" HeaderText="Ciclo" />
                            <asp:BoundField DataField="COD_ESPEC" HeaderText="Especialidad" />
                            <asp:BoundField DataField="condicion" HeaderText="Estado" />
                            <asp:BoundField DataField="Descripcion" HeaderText="Descripción Estado">
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="edad" HeaderText="Edad">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Id_Estado_Condicion" HeaderText="idEstado" 
                                Visible="False" />
                                   <asp:BoundField DataField="SEXO" HeaderText="SEXO" 
                                Visible="True" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style26">
                    &nbsp;</td>
                <td class="style24" colspan="3">
                    <asp:Button ID="btnSalir" runat="server" Height="32px" onclick="btnSalir_Click" 
                        Text="Salir" Width="90px" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        
        <br />
        
        <table >
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
   
   </ContentTemplate>
   </asp:UpdatePanel>

    </asp:Panel>
    <br />
 
   
    
   
   <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="panel1">
    <ProgressTemplate>
    <div ID="BackGround">
    <div ID="Progress">
    <h6> <p style="text-align:center"><b> Procesando Datos,espere porfavor...<br /></p></h6>
     </div>
    
    </div>
    
    
    </ProgressTemplate>
    </asp:UpdateProgress>

    
    
   
   
    <asp:HiddenField  ID="HiddenFiel1" runat="server"/>
    <asp:ModalPopupExtender ID="mpeAgregaAlumno" runat="server"
    PopupControlID="Panel2" TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground" 
    
    >

   

    </asp:ModalPopupExtender>
    
  

   

    <br />
    
  
    
    <br />
    <br />
   
    
    <br />
</asp:Content>
